package com.k2data.k2app.domain.pasObject;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * Created by clb on 17-5-27.
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class ProjectConf{
	private String dataSource;
	private String dataType;
	private String analysisType;
	private String paralType;
	private String mainR;
	private String allR;
	@JsonIgnore
	private Long trainProjId;
	private String stmtWhere;
	private String stmtTable;
	private String hdfsPath;
	private String targetFiletype;
	private Map customConf;
	private List partitionInfo;
	private List<GroupCondition> groupCondition;
	private List<Select> select;

	public List<Select> initSelect(){
		List<Select> list = new ArrayList<>();
		Select select = new Select();
		select.setName("ts");
		select.setType("TIMESTAMP");

		Select select1 = new Select();
		select1.setName("deviceNo");
		select1.setType("STRING");

		list.add(select);
		list.add(select1);
		return list;
	}
}